package top.callname.service;

import java.util.List;

import top.callname.bean.ClassBean;
import top.callname.bean.ClassPageList;
import top.callname.bean.RspInfoBean;

public interface ClassService {

	/**
	 * 根据用户查询
	 * @param pid
	 * @return List<ClassBean>
	 */
	List<ClassBean> getList(Integer pid);
	
	/**
	 * 根据主键查询
	 * @param cid
	 * @return ClassBean
	 */
	ClassBean getByCid(Integer cid);
	
	/**
	 * 分页查询
	 * @param pageNow
	 * @return
	 */
	ClassPageList getClassByPage(int pageNow);
	
	/**
	 * 获取所有班级
	 * @return
	 */
	List<ClassBean> getAll();
	
	/**
	 * 删除班级
	 * @param cid
	 * @return RspInfoBean
	 */
	RspInfoBean deleteClass(Integer cid);
	
	RspInfoBean addClass(ClassBean classBean);
}
